/*jslint node:true*/
'use strict';
var fs = require('fs');
var zlib = require('zlib');

fs.createReadStream('input.txt')
    .pipe(zlib.createGzip())
    .pipe(fs.createWriteStream('input.txt.gz'));

console.log('zip finish');